#include "MsIni.h"
#include <stdio.h>

int main() {

	ini_file_t* ini = GetIniFile("config.ini");

	for (ini_file_t::SectionMapList::iterator ini_iter = ini->sections.begin(); ini_iter != ini->sections.end(); ini_iter++)
	{
		ini_section_t* section = (*ini_iter).second;
		printf("[%s]\n", (*ini_iter).first.c_str());
		for (ini_section_t::KeyValueMap::iterator sect_iter = section->key_values.begin(); sect_iter != section->key_values.end(); sect_iter++)
		{
			printf("%s=%s\n", (*sect_iter).first.c_str(), (*sect_iter).second.c_str());
		}
	}

	return 0;
}
